module breathing_led(
	input Clk_12800Hz,
	input Rst_n,
	input[7:0] Led,
	output reg[7:0] Led_out
);

	//定义亮度
	parameter STATE1 = 7'd1;
	parameter STATE2 = 7'd5;
	parameter STATE3 = 7'd35;
	parameter STATE4 = 7'd70;
	
	reg[6:0] state_count;

	always @(posedge Clk_12800Hz or negedge Rst_n) begin
	
		if(Rst_n == 1'b0) begin
			state_count = 7'd0;
			Led_out = 8'd0;
		end
		else begin
			
			state_count = state_count + 1;
			if(state_count <= STATE1) begin
				Led_out = Led_out | Led;
			end
			else begin
				Led_out = Led_out & led;
			end
		
		end
	
	end
	
endmodule
